/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   6.test3.c                                          :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: chen_dl <19967657938@163.com>              +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2024/12/20 09:31:19 by chen_dl           #+#    #+#             */
/*   Updated: 2024/12/22 19:43:58 by chen_dl          ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

/*
给输出的内容加⼀个漂亮的框框
*/
#include <stdio.h>

int main() {
    char s[100], t[100];
    scanf("%[^\n]", s);
    int n = sprintf(t, "| %s |", s);
    for (int i = 0; i < n; i++)
        printf("-");
    printf("\n");

    printf("%s\n", t);

    for (int i = 0; i < n; i++)
        printf("-");
    printf("\n");

    return 0;
}